import { getGlobalData } from "../../get-global-data";

// components/popup/popup.js
Component({
    options: {
        styleIsolation: 'isolated'
    },
    /**
     * 组件的属性列表
     */
    properties: {
        type: {
            type: String,
            value: 'default'
        },
        adaptBottom: {
            type: Boolean,
            value: false
        },
        /**
         * small default normal large larger
         */
        size: {
            type: String,
            value: 'default'
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        hover: false
    },

    lifetimes: {
        attached: function () {
        }
    },

    /**
     * 组件的方法列表
     */
    methods: {
        touchstart: function() {
            this.setData({
                hover: true
            });
        },
        touchcancel: function() {
            this.setData({
                hover: false
            });
        }
    }
})
